package com.fjec.activity.service;

import com.fjec.activity.entity.BizUserGift;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjec.activity.feign.entity.GiftInfo;
import com.fjec.activity.view.UserGiftVO;
import com.fjec.common.protocol.JsonResult;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 001.用户礼物表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
public interface IBizUserGiftService extends IService<BizUserGift> {
    JsonResult getUserGiftsByUserId(Long userId);

    Long buyGifts(List<UserGiftVO> gifts);

    int buyGiftsSuccessfully(List<UserGiftVO> gifts, Long orderId);

    int putUserGifts(List<Map<String, Object>> boughtGifts, Long orderId);
}
